package com.xiaoq.shop.vo;

import com.xiaoq.shop.entity.SPUEntity;
/**
 * Created by qudongxin520 on 2016/9/30.
 */
public class SKUVO{
    private String id;
    private Long createdAt;
    private Long updatedAt;
    private String  cornershopId;

    private String spuCode; //SPU编码

    private String skuCode; //SKU编码
    private String spuName;

    private double price;  //原始价格（在商品发布时设置）

    private double discountPrice; //折扣价格（在限时折扣中设置）

    private double recommendPrice; //店长推荐价格（在单品推荐中设置）
    private double lowestPrice; //促销最低价格 没有促销价格就和原价一样
    private int stocks; //库存

    private String specifications; //唯一规格

    private String imageUrlOfSKU; //当前规格对应的产品图片url地址

    private int saleState ;  //商品销售状态  1:上架中;0:已下架;
    private int promotionState;  //优惠类型 1 ，微团购，2限时打折中



    private double groupPurchasePrice; //团购价格

    private int minNumberOfPurchaser; //最小成团人数

    private int maxOfGroups;  //最大开团个数

    private Long startTime; //开始时间

    private Long endTime; //结束时间

    private boolean isRestrictedPurchaing; //是否限购

    private int maxcountOfPurchasing; //每人的最大购买数量
    private String groupPurchaseState; //团购状态  1未开始  2 进行中 3已结束
    private SPUEntity spu;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Long getCreatedAt() {
		return createdAt;
	}
	public void setCreatedAt(Long createdAt) {
		this.createdAt = createdAt;
	}
	public Long getUpdatedAt() {
		return updatedAt;
	}
	public void setUpdatedAt(Long updatedAt) {
		this.updatedAt = updatedAt;
	}
	public String getCornershopId() {
		return cornershopId;
	}
	public void setCornershopId(String cornershopId) {
		this.cornershopId = cornershopId;
	}
	public String getSpuCode() {
		return spuCode;
	}
	public void setSpuCode(String spuCode) {
		this.spuCode = spuCode;
	}
	public String getSkuCode() {
		return skuCode;
	}
	public void setSkuCode(String skuCode) {
		this.skuCode = skuCode;
	}
	public String getSpuName() {
		return spuName;
	}
	public void setSpuName(String spuName) {
		this.spuName = spuName;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public double getDiscountPrice() {
		return discountPrice;
	}
	public void setDiscountPrice(double discountPrice) {
		this.discountPrice = discountPrice;
	}
	public double getRecommendPrice() {
		return recommendPrice;
	}
	public void setRecommendPrice(double recommendPrice) {
		this.recommendPrice = recommendPrice;
	}
	public double getLowestPrice() {
		return lowestPrice;
	}
	public void setLowestPrice(double lowestPrice) {
		this.lowestPrice = lowestPrice;
	}
	public int getStocks() {
		return stocks;
	}
	public void setStocks(int stocks) {
		this.stocks = stocks;
	}
	public String getSpecifications() {
		return specifications;
	}
	public void setSpecifications(String specifications) {
		this.specifications = specifications;
	}
	public String getImageUrlOfSKU() {
		return imageUrlOfSKU;
	}
	public void setImageUrlOfSKU(String imageUrlOfSKU) {
		this.imageUrlOfSKU = imageUrlOfSKU;
	}
	public int getSaleState() {
		return saleState;
	}
	public void setSaleState(int saleState) {
		this.saleState = saleState;
	}
	public int getPromotionState() {
		return promotionState;
	}
	public void setPromotionState(int promotionState) {
		this.promotionState = promotionState;
	}
	public double getGroupPurchasePrice() {
		return groupPurchasePrice;
	}
	public void setGroupPurchasePrice(double groupPurchasePrice) {
		this.groupPurchasePrice = groupPurchasePrice;
	}
	public int getMinNumberOfPurchaser() {
		return minNumberOfPurchaser;
	}
	public void setMinNumberOfPurchaser(int minNumberOfPurchaser) {
		this.minNumberOfPurchaser = minNumberOfPurchaser;
	}
	public int getMaxOfGroups() {
		return maxOfGroups;
	}
	public void setMaxOfGroups(int maxOfGroups) {
		this.maxOfGroups = maxOfGroups;
	}
	public Long getStartTime() {
		return startTime;
	}
	public void setStartTime(Long startTime) {
		this.startTime = startTime;
	}
	public Long getEndTime() {
		return endTime;
	}
	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}
	public boolean isRestrictedPurchaing() {
		return isRestrictedPurchaing;
	}
	public void setRestrictedPurchaing(boolean isRestrictedPurchaing) {
		this.isRestrictedPurchaing = isRestrictedPurchaing;
	}
	public int getMaxcountOfPurchasing() {
		return maxcountOfPurchasing;
	}
	public void setMaxcountOfPurchasing(int maxcountOfPurchasing) {
		this.maxcountOfPurchasing = maxcountOfPurchasing;
	}
	public String getGroupPurchaseState() {
		return groupPurchaseState;
	}
	public void setGroupPurchaseState(String groupPurchaseState) {
		this.groupPurchaseState = groupPurchaseState;
	}
	public SPUEntity getSpu() {
		return spu;
	}
	public void setSpu(SPUEntity spu) {
		this.spu = spu;
	}
}
